package com.rao.mapper;

import com.rao.entity.Score;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rao.entity.VO.ScoreVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 分数表 Mapper 接口
 * </p>
 *
 * @author rao3030
 * @since 2021-11-04
 */
public interface ScoreMapper extends BaseMapper<Score> {

    /**
     *
     * @param studentId
     * @param startExamDate
     * @param endExamDate
     * @return
     */
    List<ScoreVO> listByStuNameAndTime(@Param("stuId") Integer studentId,
                                       @Param("startExamDate") Date startExamDate,
                                       @Param("endExamDate") Date endExamDate);
}
